/**
 * jims
 */
package com.jims.master.modules.med.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.med.dao.OrgVsProvinceDao;
import com.jims.master.modules.med.entity.OrgVsProvince;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 组织机构与省份对照Service
 * @author 陈晓阳
 * @version 2017-06-06
 */
@Service
@Transactional(readOnly = true)
public class OrgVsProvinceService extends CrudService<OrgVsProvinceDao, OrgVsProvince> {

    @Autowired
    private OrgVsProvinceDao orgVsProvinceDao;

	public OrgVsProvince get(String id) {
		return super.get(id);
	}
	
	public List<OrgVsProvince> findList(OrgVsProvince orgVsProvince) {
		return super.findList(orgVsProvince);
	}
	
	public Page<OrgVsProvince> findPage(Page<OrgVsProvince> page, OrgVsProvince orgVsProvince) {
		return super.findPage(page, orgVsProvince);
	}
	
	@Transactional(readOnly = false)
	public int save(OrgVsProvince orgVsProvince) {
		return super.save(orgVsProvince);
	}
	
	@Transactional(readOnly = false)
	public int delete(OrgVsProvince orgVsProvince) {
		return super.delete(orgVsProvince);
	}

    public String getTargetClass(String orgId) {
        return orgVsProvinceDao.getTargetClass(orgId);
    }
}